<template>
  <v-chart :options="options" autoresize />
</template>

<script>
import Vue from 'vue';
import VChart from 'vue-echarts';

import 'echarts/lib/chart/pie';
import 'echarts/lib/chart/bar';
import 'echarts/lib/chart/line';
import 'echarts/lib/chart/map';
import 'echarts/lib/component/tooltip';
import 'echarts/lib/component/title';
import 'echarts/lib/component/geo';
import 'echarts/lib/component/visualMap';

Vue.component('v-chart', VChart);

export default {
  name: 'temp',
  props: {
    options: {
      type: Object,
      required: true
    }
  }
};
</script>

<style scoped>
.chart {
  width: 100%;
  height: 100%;
}
</style>
